package com.chen.blue.domain.dto.system;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * Created By CLT On 2024/5/9.
 */
@SuppressWarnings("all")
@Getter
@Setter
@ToString
@ApiModel("菜单角色添加参数")
public class MenuRoleDto {

    /**
     * 角色ID
     */
    @NotNull(message = "角色ID不能为空")
    @ApiModelProperty(value = "角色ID", required = true)
    private Long roleId;

    /**
     * 菜单ID
     */
    @NotNull(message = "菜单ID不能为空")
    @ApiModelProperty(value = "菜单ID", required = true)
    private Long menuId;

    /**
     * 创建者
     */
    @JsonIgnore
    @ApiModelProperty(value = "创建者")
    private String creator;

    /**
     * 修改者
     */
    @JsonIgnore
    @ApiModelProperty(value = "修改者")
    private String updater;

}
